home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Tools 3
/
Amiga Tools 3.iso
/
grafik
/
raytracing
/
rayshade-4.0.6.3
/
fixes
/
fix010
< prev
next >
Wrap
Text File
|
1994-08-09
|
3KB
|
73 lines
From theseas!fs.Princeton.EDU!cek Thu, 1 Jul 93 08:24:33 EET
Received: by kriton.UUCP (V1.16/Amiga)
id AA00000; Thu, 1 Jul 93 08:24:33 EET
Received: by theseas.ntua.gr with UUCP; Thu, 1 Jul 93 00:46:12 +0300
Received: from mcsun.EU.net by pythia.ics.forth.gr via ITEnet with SMTP;
id AA05912 (5.65c/FORTH-ICS-3.0-MHS-7.0); Wed, 30 Jun 1993 23:35:51 +0300
Received: by mcsun.EU.net with UUCP
id AA17351 (5.65b/CWI-%I%); Wed, 30 Jun 1993 22:35:30 +0200
Received: from Princeton.EDU by relay1.UU.NET with SMTP
(5.61/UUNET-internet-primary) id AA17461; Mon, 28 Jun 93 07:36:27 -0400
Received: from fs.Princeton.EDU by Princeton.EDU (5.65b/2.96/princeton)
id AA06542; Mon, 28 Jun 93 07:35:09 -0400
Received: by fs.Princeton.EDU (4.1/1.105)
id AA18872; Mon, 28 Jun 93 07:35:07 EDT
Received: from faui45.informatik.uni-erlangen.de ([131.188.34.45]) by fs.Princeton.EDU (4.1/1.105)
id AA18785; Mon, 28 Jun 93 07:34:10 EDT
Received: from faui43.informatik.uni-erlangen.de by uni-erlangen.de with SMTP;
id AA11826 (5.65c-5/7.3u-FAU); Mon, 28 Jun 1993 13:34:03 +0200
Received: by immd4.informatik.uni-erlangen.de;
id AA03497 (5.65c-5/7.3m-FAU); Mon, 28 Jun 1993 13:34:01 +0200
Message-Id: <199306281134.AA03497@faui43.informatik.uni-erlangen.de>
Date: Mon, 28 Jun 93 13:34:01 METDST
X-Mailer: ELM [version 2.3 PL11]
Errors-To: Princeton.EDU!cek
Remailed-Date: Mon Jun 28 07:34:26 EDT 1993
From: "Michael Schroeder (Inf4 - hiwi)" <immd4.informatik.uni-erlangen.de!mlschroe>
To: "Rayshade Distribution List" <cs.Princeton.EDU!rayshade-users>
Subject: sphere...
Uuuuugh, of cause the division by the radius of the sphere is
now obsolete. The patch should read:
*** sphere.c.orig Sun Jun 27 21:53:08 1993
--- sphere.c Mon Jun 28 13:32:55 1993
***************
*** 135,143 ****
Sphere *sphere;
Vector *pos, *nrm, *gnrm;
{
! nrm->x = (pos->x - sphere->x) / sphere->r;
! nrm->y = (pos->y - sphere->y) / sphere->r;
! nrm->z = (pos->z - sphere->z) / sphere->r;
*gnrm = *nrm;
return FALSE;
}
--- 135,148 ----
Sphere *sphere;
Vector *pos, *nrm, *gnrm;
{
! nrm->x = pos->x - sphere->x;
! nrm->y = pos->y - sphere->y;
! nrm->z = pos->z - sphere->z;
! /*
! * We cannot divide by sphere->r to normalize the vector
! * because of roundoff errors in the intersection calculation.
! */
! VecNormalize(nrm);
*gnrm = *nrm;
return FALSE;
}
Michael.
---------------------------------------------------------------
Michael Schroeder mlschroe@faui43.informatik.uni-erlangen.de
main(a){while(a=~getchar())putchar(~a-1/(~(a|32)/13*2-11)*13);}
----------
Administrivia: rayshade-request@cs.princeton.edu
Mailing list: rayshade-users@cs.princeton.edu